package com.code.train.gateway;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.core.env.ConfigurableEnvironment;

@SpringBootApplication
@Slf4j
public class GatewayApplication {
	public static void main(String[] args) {

//		SpringApplication.run(TrainApplication.class, args);
		SpringApplication application = new SpringApplication(GatewayApplication.class);
		ConfigurableEnvironment environment = application.run(args).getEnvironment();
		log.info("gateway模块正常启动");
		log.info("地址为: \thttp://localhost:{}" ,environment.getProperty("server.port"));
	}

}
